home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _66C4EED70FD445D1886B2BD344BDB4CF < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.0 KB  |  83 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R2xx / NVidia NV2X (PS.1.X and above)
  9.  
  10. // Specular (masked by gloss map) and diffuse bump-mapping with real-time reflection map
  11. // At least three passes on NVidia NV1X for single-multiple light sources
  12. // One pass on ATI R3XX and NVidia NV3X for single light source (one pass for each additional LS)
  13. // One pass for single directional light source on any hardware
  14.  
  15. // Supports:
  16. // 1. Dot3 light maps
  17. // 2. Simple light maps
  18. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  19. // 4. Stencil shadows
  20. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  21. // 6. Optimised separate techniques for Single/Multiple light sources
  22. // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
  23.  
  24. /*Shader 'TemplBumpSpec_Gloss_EnvCMAmb_RT'
  25. (
  26.   Params
  27.   (
  28.     Sort = Opaque
  29.   )
  30.   Public
  31.   (
  32.     float 'ReflectAmount' (0.25)
  33.   )
  34.   
  35.   RenderParams
  36.   {
  37.     DrawFarSprites
  38.     DrawStaticObjects
  39.     DrawParticles
  40.     DrawEntities
  41.     DrawIndoors
  42.     DrawDetailTextures
  43.     FullDetailTerrain
  44.     DrawWater
  45.     DrawTerrain
  46.   }
  47.  
  48.   #define $ENVCMAP $EnvironmentCubeMap
  49.   #include "BumpSpecular_Gloss_EnvCM.csi"  
  50.   #undefine $ENVCMAP
  51. )*/
  52.  
  53. Shader 'TemplBumpSpec_Gloss_EnvCMAmb_RT'
  54. (
  55.   Params
  56.   (
  57.     Sort = Opaque
  58.   )
  59.  
  60.   #define %DIFFUSE 0x1
  61.   #define %DIFFUSE_NCM 0x4
  62.   #define %SPECULAR 0x2
  63.   #define %SPECULAR_NCM 0x8
  64.   #define %GLOSS_MAP 0x10
  65.   #define %DIFFUSEALPHA 0x4000
  66.   #define %ENVCMAMB 0x40
  67.   #define %RTCUBEMAP 0x10000
  68.   #define %BUMP_MAP 0x1000
  69.   
  70.   #include "IllumTemplate.csi"
  71.   
  72.   #undefine %BUMP_MAP
  73.   #undefine %RTCUBEMAP
  74.   #undefine %ENVCMAMB
  75.   #undefine %DIFFUSEALPHA
  76.   #undefine %GLOSS_MAP
  77.   #undefine %SPECULAR_NCM
  78.   #undefine %SPECULAR
  79.   #undefine %DIFFUSE_NCM
  80.   #undefine %DIFFUSE
  81. )
  82.  
  83.